package com.lianxi.layui;


import com.lianxi.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/layui")
public class LayuiTestController {



    @RequestMapping("/test1")
    public String test1(Model model){
        User user = new User();
        user.setName("齐浩");
        user.setAge(18);
        user.setId(10);
        model.addAttribute("user",user);
        return "layui/test1";
    }

}
